import requests











if __name__=="__main__":
    g=open('useableIP.txt','w')
    with open('ProxyScanHTTPS(1).txt','r') as f:
        for i in f:
        
            proxy={'https':'https://'+i.replace('\r','').replace('\n','')}
            try:
                requests.get('https://www.baidu.com',proxies=proxy,timeout=1)
            except Exception as e:
                print(i.replace('\r','').replace('\n',''),'no')
                flag=0
            else:
                print(i)
                g.write(i)
                

    g.close()
            